<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
        <h:panelGrid columns="3" cellpadding="10" style="width: 100%; font-weight: bolder">

            <p:commandButton value="Terminar Turno"
                             oncomplete="dlgTurnRate.show()"/>
            <p:outputLabel value="Inicio"/>
            <p:outputLabel value="#{turnsBean.turn.trnDateStart.toLocaleString()}"
                           />

        </h:panelGrid>
        <br/>
        <h:panelGrid columns="2" cellpadding="7" style="font-weight: bolder">

            <p:outputLabel value="Turno No: "/>
            <p:outputLabel value="#{turnsBean.turn.trnNmbr}"/>

            <p:outputLabel value="Código: "/>
            <p:inputText value="#{turnsBean.turn.trnCstCode}"
                         maxlength="20"
                         style="width: 125px"/>

            <p:outputLabel value="Nombre: "/>
            <p:inputText value="#{turnsBean.turn.trnCstName}"
                         maxlength="250"
                         style="width: 400px"/>

            <p:outputLabel value="Facultad o Dependencia:" />
            <p:inputText value="#{turnsBean.turn.trnCstRefr}"
                         maxlength="250"
                         style="width: 400px"/>

            <p:outputLabel value="Motivo:" />
            <p:selectOneMenu value="#{turnsBean.trsCode}" style="width: 243px">
                <f:selectItems value="#{turnsBean.reasons}"
                               var="reasons"
                               itemLabel="#{reasons.trsName}"
                               itemValue="#{reasons.trsCode}"
                               />
            </p:selectOneMenu>

        </h:panelGrid>

        <p:separator/>

        <h:panelGrid columns="2" cellpadding="7" style="font-weight: bolder">
            <p:outputLabel value="Descripción del Caso:" />
            <p:inputTextarea value="#{turnsBean.turn.trnDesc}"
                             cols="60"
                             rows="6"/>
            <p:outputLabel value="Solución del Caso:" />
            <p:inputTextarea value="#{turnsBean.turn.trnSltn}"
                             cols="60"
                             rows="6"/>
        </h:panelGrid>


    </h:body>
</html>

